package eleventh.正则表达式;

public class 使用String类修改之后的操作 {
    public static void main(String[] args) {
        String str ="A1B22C333D4444E55555F".replaceAll("\\d+","_");
        boolean temp = "1983-07-27".matches("\\d{4}-\\d{2}-\\d{2}");
        String s[] ="A1B22C333D4444E55555F".split("\\d+");
        System.out.println("字符串替换操作："+str);
        System.out.println("字符串替换验证："+temp);
        System.out.println("字符串拆分：");
        for (int i = 0; i <s.length ; i++) {
            System.out.print(s[i]+"\t");
        }


    }
}
/*
D:\WorkSpaces\Java\jdk-21\bin\java.exe "-javaagent:D:\Software\IntelliJ IDEA\IntelliJ IDEA 2023.3.2\lib\idea_rt.jar=58598:D:\Software\IntelliJ IDEA\IntelliJ IDEA 2023.3.2\bin" -Dfile.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 -Dsun.stderr.encoding=UTF-8 -classpath D:\WorkSpaces\JavaDevelopBase_start_329\out\production\JavaDevelopBase_start_329 eleventh.正则表达式.使用String类修改之后的操作
字符串替换操作：A_B_C_D_E_F
字符串替换验证：true
字符串拆分：
A	B	C	D	E	F
Process finished with exit code 0

 */